Today's Question:  What does your personal desk look like?        GIVE A SHOUT

SEARCH KEYWORD -- Popular location



  JavaScript to open link in new window without being popup blocked

To ensure security and reduce spamming, modern browsers have implemented very strict rules on when a new window can be opened in a web page. Currently browsers restrict that any new web page to be opened in a new window must be initiated with an user action. The action is usually an user click event. Otherwise, a popup blocker would show on the browser address bar which indicates that something is blocked. To workaround this issue, normally you should implement the window open logic in a click e...

   JAVASCRIPT,IFRAME,NEW WINDOW,OPEN LINK     2018-09-22 04:29:30

  Some frequently used ES6 code snippets

Below are a list of ES6 code snippets which are used frequently. Hope that it will be helpful. 1. Shuffle array elements let arr = [67, true, false, '55'] arr = arr.sort(() => 0.5 - Math.random()) console.log(arr) // [ '55', 67, false, true ] 2. Remove characters which are not numbers const str = 'xieyezi 23213 is 95994 so hansome 223333' const numbers = str.replace(/\D/g, '') console.log(numbers) // 2321395994223333 3. Reverse sequence or words const sentence = 'xieyezi js so handsome, lol.'...

   JAVASCRIPT,ES6,CODE SNIPPET,TIPS     2022-04-10 07:56:07

  Source code for sharing webpage to facebook

Copy and paste the following code blocks into your site and replace '<url>' with the link you want to Share.Text link:<script>function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}</script><a rel="nofollow" href="http://www.facebook.com/share.php?u=<;url>" onclick="return fbs_click()" target="_blank...

   Source code,Facebook,Share,Webpage     2011-07-23 06:52:07

  PHP to get access token for Twitter app

Previously we wrote an article about getting access token for Facebook app--PHP to get access token for Facebook app. Today we will introduce how to get access token for Twitter app using PHP. Since now Twitter is also using OAuth 2.0 to allow some web apps to access some users information on behalf of one user. They provided some APIs for developers to easily get them integrated with their own websites. The first step to get all these done is how to get the access token, the access token seems ...

   Twitter,OAuth,access token,PHP     2013-03-03 03:49:26

  Location matters for your startup

18 months ago I relocated from my home town of Glasgow, to London, just 400 miles away. An important reason for the move was because I had just started working on my new startup, Teamly, and I know that location matters, even when running an internet business. Don’t kid yourself otherwise, your chance of success is seriously improved when you’re in a startup hub.18 months later and moving to London has proved to be a smart move, for all the expected reasons, as well as  t...

   Startup,Location,Company,Brand,Popular location     2011-10-22 13:01:39

  Stanford Computer Science '10-'11 Salary Survey Results

CS/EE UndergradsData: I received 140 responses which described 360 job offers. 95% of the job offers were primarily located in the Bay Area, 5% were from the Midwest and East Coast. 10% of the job offers were from start-ups.Salary offers ranged from $64,400 to $100,000. The average salary offer was $79,914. The median salary offer was $ 82,200.About 70% of students were offered stock options. About 80% of students were offered signing bonuses. And about 60% were offered relocation assistan...

   Stanford,Computer science,Salary,Survey     2011-12-25 00:54:41

  The State of Digital Commerce and Smartphones

The ubiquitous nature of the smartphones and other mobile devices has given rise to a highly informed and connected consumer base. They walk into a retail outlet and they would already be whipping out their mobile devices to compare products or prices available in-store to those available online. Moreover, they expect the retailers to be well aware of not only the merchandise, but also about promotions and discounts on offer. Interestingly, the number of e-commerce transactions has been on the r...

   Ecommerce Web Development Company, Android App Developers     2015-09-09 04:57:31

  Samsung S3 defeats iPhone 4S in sales in Q3

The market research firm Strategy Analytics publishes a research report which states global sales of Samsung Galaxy S3 is over iPhone 4S in the third quarter of 2012, it becomes the most popular mobile phone.From the chart below, Galaxy S3 was sold 18 million units in Q3, while iPhone 4S was sold 16.2 million units. Galaxy S3 took market share of 10.7%, and iPhone 4S took 9.7%.Perhaps people are not willing to buy iPhone 4S due to the launch of the iPhone 5, the iPhone 4S sales lost to Gala...

   Samsung S3,sale,iPhone 4S     2012-11-08 11:22:54

  Nokia : Nokia map is better than Apple map

Recently, the new release of Apple map is criticized by many users because of its search results accuracy. By this time, Nokia which has its map service Ovi Maps has a comparison of three maps in its Conversations blog. These three maps are the one on the Lumia 920, the Google Map on Samsung Galaxy S3, the map on Apple iPhone 5, It wants to show that Nokia is the best among them. Let's take a look:1. Offline modeOn Lumia 920 Map, the map of the entire country is downloaded, you can position, sea...

   Lumia 920,Galaxy s3,iPhone 5,Map     2012-09-22 00:09:24

  Install multiple versions of Go

As a developer, there might be need in some cases to have multiple versions of Go installed. One may test out some new features of the latest version of Go but also wanna maintain a stable version of Go for daily development purpose. How to maintain multiple versions of Go? The GoLang official website has provided a way to maintain multiple versions of Go by using go get to install the different versions of Go. Below are steps: Download a normal version of Go and install it Go to the Go release...

   MULTIPLE VERSION,GO BINARY,GO VERSION     2021-05-16 02:01:46